//
//  NSObject+NEDKVO.h
//  NEDSuoShi
//
//  Created by 000 on 2020/12/4.
//  Copyright © 2020 林宁宁. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSObject (NEDKVO)

//- (void)ned_kvoForKeyPath:(NSString*)keyPath
//                   block:(void (^)(id  _Nonnull obj, id  _Nullable oldVal, id  _Nullable newVal))block;
//- (void)ned_kvoForKeyPaths:(NSArray <NSString*> *)keyPaths
//                    block:(void (^)(id  _Nonnull obj, id  _Nullable oldVal, id  _Nullable newVal))block;


- (void)ned_kvoForKeyPath:(NSString*)keyPath
                  observe:(id)observe
                    block:(void (^)(id  _Nonnull obj, id  _Nullable oldVal, id  _Nullable newVal))block;
- (void)ned_kvoForKeyPaths:(NSArray <NSString*> *)keyPaths
                  observe:(id)observe
                    block:(void (^)(id  _Nonnull obj, id  _Nullable oldVal, id  _Nullable newVal))block;

@end

NS_ASSUME_NONNULL_END
